import Vue from "vue";
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

//import '@/assets/styles/index.scss'
import "@/assets/styles/border.css";
import "@/assets/styles/reset.css";
import "@/router/permission.js";
// import '@/router/init.js'
import { totalCommon } from "@/sys/mixinFunc.js";

import SvgIcon from "@/icons";

// 国际化中文
import zhCn from "element-plus/es/locale/lang/zh-cn";

// import * as echarts from "echarts";

const app = createApp(App);
SvgIcon(app);

app.mixin(totalCommon);

app.use(ElementPlus, {
  locale: zhCn,
});

app.use(store);
app.use(router);
app.use(ElementPlus);

app.mount("#app");
